Moscow Middle School Math Olympiad Question